﻿using System;
using Terraria.Utilities;

namespace Terraria.World.Generation
{
	// Token: 0x0200008C RID: 140
	public class GenBase
	{
		// Token: 0x170000BB RID: 187
		// (get) Token: 0x06000A19 RID: 2585 RVA: 0x0000AECA File Offset: 0x000090CA
		protected static UnifiedRandom _random
		{
			get
			{
				return WorldGen.genRand;
			}
		}

		// Token: 0x170000BC RID: 188
		// (get) Token: 0x06000A1A RID: 2586 RVA: 0x0000AED1 File Offset: 0x000090D1
		protected static Tile[,] _tiles
		{
			get
			{
				return Main.tile;
			}
		}

		// Token: 0x170000BD RID: 189
		// (get) Token: 0x06000A1B RID: 2587 RVA: 0x0000AED8 File Offset: 0x000090D8
		protected static int _worldWidth
		{
			get
			{
				return Main.maxTilesX;
			}
		}

		// Token: 0x170000BE RID: 190
		// (get) Token: 0x06000A1C RID: 2588 RVA: 0x0000AEDF File Offset: 0x000090DF
		protected static int _worldHeight
		{
			get
			{
				return Main.maxTilesY;
			}
		}

		// Token: 0x0200008D RID: 141
		// (Invoke) Token: 0x06000A1F RID: 2591
		public delegate bool CustomPerUnitAction(int x, int y, params object[] args);
	}
}
